<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of EaExcelPrinter
 *
 * @author EaDeveloper
 */
class EaExcelPrinter implements EasoftPrinter {

    public $db;

    public function write($report) {
        header("Content-type: application/vnd.ms-excel");
        header("Content-Disposition: attachment; filename=$report->key.xls");
        $report->show();
    }

}

?>